{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "pygame 1.9.5\n",
      "Hello from the pygame community. https://www.pygame.org/contribute.html\n"
     ]
    }
   ],
   "source": [
    "from pgdancer import histogram"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "df = pd.read_csv(\"brands_data.csv\", index_col=\"brands\", thousands=\",\").fillna(0)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "df = df.astype(\"int\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>2000</th>\n",
       "      <th>2001</th>\n",
       "      <th>2002</th>\n",
       "      <th>2003</th>\n",
       "      <th>2004</th>\n",
       "      <th>2005</th>\n",
       "      <th>2006</th>\n",
       "      <th>2007</th>\n",
       "      <th>2008</th>\n",
       "      <th>2009</th>\n",
       "      <th>2010</th>\n",
       "      <th>2011</th>\n",
       "      <th>2012</th>\n",
       "      <th>2013</th>\n",
       "      <th>2014</th>\n",
       "      <th>2015</th>\n",
       "      <th>2016</th>\n",
       "      <th>2017</th>\n",
       "      <th>2018</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>brands</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>Coca-Cola</th>\n",
       "      <td>72537</td>\n",
       "      <td>68945</td>\n",
       "      <td>69637</td>\n",
       "      <td>70453</td>\n",
       "      <td>67394</td>\n",
       "      <td>67525</td>\n",
       "      <td>67000</td>\n",
       "      <td>65324</td>\n",
       "      <td>66667</td>\n",
       "      <td>68734</td>\n",
       "      <td>70452</td>\n",
       "      <td>71861</td>\n",
       "      <td>77839</td>\n",
       "      <td>79213</td>\n",
       "      <td>81563</td>\n",
       "      <td>78423</td>\n",
       "      <td>73102</td>\n",
       "      <td>69733</td>\n",
       "      <td>66341</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Microsoft</th>\n",
       "      <td>70196</td>\n",
       "      <td>65068</td>\n",
       "      <td>64091</td>\n",
       "      <td>65174</td>\n",
       "      <td>61372</td>\n",
       "      <td>59941</td>\n",
       "      <td>56926</td>\n",
       "      <td>58709</td>\n",
       "      <td>59007</td>\n",
       "      <td>56647</td>\n",
       "      <td>60895</td>\n",
       "      <td>59087</td>\n",
       "      <td>57853</td>\n",
       "      <td>59546</td>\n",
       "      <td>61154</td>\n",
       "      <td>67670</td>\n",
       "      <td>72795</td>\n",
       "      <td>79999</td>\n",
       "      <td>92715</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>IBM</th>\n",
       "      <td>53183</td>\n",
       "      <td>52752</td>\n",
       "      <td>51188</td>\n",
       "      <td>51767</td>\n",
       "      <td>53791</td>\n",
       "      <td>53376</td>\n",
       "      <td>56201</td>\n",
       "      <td>57090</td>\n",
       "      <td>59031</td>\n",
       "      <td>60211</td>\n",
       "      <td>64727</td>\n",
       "      <td>69905</td>\n",
       "      <td>75532</td>\n",
       "      <td>78808</td>\n",
       "      <td>72244</td>\n",
       "      <td>65095</td>\n",
       "      <td>52500</td>\n",
       "      <td>46829</td>\n",
       "      <td>42972</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Intel</th>\n",
       "      <td>39048</td>\n",
       "      <td>34665</td>\n",
       "      <td>30861</td>\n",
       "      <td>31112</td>\n",
       "      <td>33499</td>\n",
       "      <td>35588</td>\n",
       "      <td>32319</td>\n",
       "      <td>30954</td>\n",
       "      <td>31261</td>\n",
       "      <td>30636</td>\n",
       "      <td>32015</td>\n",
       "      <td>35217</td>\n",
       "      <td>39385</td>\n",
       "      <td>37257</td>\n",
       "      <td>34153</td>\n",
       "      <td>35415</td>\n",
       "      <td>36952</td>\n",
       "      <td>39459</td>\n",
       "      <td>43293</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Nokia</th>\n",
       "      <td>38528</td>\n",
       "      <td>35035</td>\n",
       "      <td>29970</td>\n",
       "      <td>29440</td>\n",
       "      <td>24041</td>\n",
       "      <td>26452</td>\n",
       "      <td>30131</td>\n",
       "      <td>33696</td>\n",
       "      <td>35942</td>\n",
       "      <td>34864</td>\n",
       "      <td>29495</td>\n",
       "      <td>25071</td>\n",
       "      <td>21009</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>GE</th>\n",
       "      <td>38127</td>\n",
       "      <td>42396</td>\n",
       "      <td>41311</td>\n",
       "      <td>42340</td>\n",
       "      <td>44111</td>\n",
       "      <td>46996</td>\n",
       "      <td>48907</td>\n",
       "      <td>51569</td>\n",
       "      <td>53086</td>\n",
       "      <td>47777</td>\n",
       "      <td>42808</td>\n",
       "      <td>42808</td>\n",
       "      <td>43682</td>\n",
       "      <td>46947</td>\n",
       "      <td>45480</td>\n",
       "      <td>42267</td>\n",
       "      <td>43130</td>\n",
       "      <td>44208</td>\n",
       "      <td>32737</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Ford</th>\n",
       "      <td>36368</td>\n",
       "      <td>30092</td>\n",
       "      <td>20403</td>\n",
       "      <td>17066</td>\n",
       "      <td>14475</td>\n",
       "      <td>13159</td>\n",
       "      <td>11056</td>\n",
       "      <td>8982</td>\n",
       "      <td>7896</td>\n",
       "      <td>28447</td>\n",
       "      <td>7195</td>\n",
       "      <td>7483</td>\n",
       "      <td>7958</td>\n",
       "      <td>9181</td>\n",
       "      <td>10876</td>\n",
       "      <td>11578</td>\n",
       "      <td>12962</td>\n",
       "      <td>13643</td>\n",
       "      <td>13995</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Disney</th>\n",
       "      <td>33553</td>\n",
       "      <td>32591</td>\n",
       "      <td>29256</td>\n",
       "      <td>28036</td>\n",
       "      <td>27113</td>\n",
       "      <td>26441</td>\n",
       "      <td>27848</td>\n",
       "      <td>29210</td>\n",
       "      <td>29251</td>\n",
       "      <td>28447</td>\n",
       "      <td>28731</td>\n",
       "      <td>29018</td>\n",
       "      <td>27438</td>\n",
       "      <td>28147</td>\n",
       "      <td>32223</td>\n",
       "      <td>36514</td>\n",
       "      <td>38790</td>\n",
       "      <td>40772</td>\n",
       "      <td>39874</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>McDonald's</th>\n",
       "      <td>27859</td>\n",
       "      <td>25289</td>\n",
       "      <td>26375</td>\n",
       "      <td>24699</td>\n",
       "      <td>25001</td>\n",
       "      <td>26014</td>\n",
       "      <td>27501</td>\n",
       "      <td>29398</td>\n",
       "      <td>31049</td>\n",
       "      <td>32275</td>\n",
       "      <td>33578</td>\n",
       "      <td>35593</td>\n",
       "      <td>40062</td>\n",
       "      <td>41992</td>\n",
       "      <td>42254</td>\n",
       "      <td>39809</td>\n",
       "      <td>39381</td>\n",
       "      <td>41533</td>\n",
       "      <td>43417</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>AT&amp;T</th>\n",
       "      <td>25548</td>\n",
       "      <td>22828</td>\n",
       "      <td>16059</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Marlboro</th>\n",
       "      <td>22110</td>\n",
       "      <td>22053</td>\n",
       "      <td>24151</td>\n",
       "      <td>22183</td>\n",
       "      <td>22128</td>\n",
       "      <td>21189</td>\n",
       "      <td>21350</td>\n",
       "      <td>21282</td>\n",
       "      <td>21300</td>\n",
       "      <td>19010</td>\n",
       "      <td>19961</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Mercedes-Benz</th>\n",
       "      <td>21104</td>\n",
       "      <td>21728</td>\n",
       "      <td>21010</td>\n",
       "      <td>21371</td>\n",
       "      <td>21331</td>\n",
       "      <td>20006</td>\n",
       "      <td>21795</td>\n",
       "      <td>23568</td>\n",
       "      <td>25577</td>\n",
       "      <td>23867</td>\n",
       "      <td>25179</td>\n",
       "      <td>27445</td>\n",
       "      <td>30097</td>\n",
       "      <td>31904</td>\n",
       "      <td>34338</td>\n",
       "      <td>36711</td>\n",
       "      <td>43490</td>\n",
       "      <td>47829</td>\n",
       "      <td>48601</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HP</th>\n",
       "      <td>20572</td>\n",
       "      <td>17983</td>\n",
       "      <td>16776</td>\n",
       "      <td>19860</td>\n",
       "      <td>20978</td>\n",
       "      <td>18866</td>\n",
       "      <td>20458</td>\n",
       "      <td>22197</td>\n",
       "      <td>23509</td>\n",
       "      <td>24096</td>\n",
       "      <td>26867</td>\n",
       "      <td>28479</td>\n",
       "      <td>26087</td>\n",
       "      <td>25843</td>\n",
       "      <td>23758</td>\n",
       "      <td>23056</td>\n",
       "      <td>10386</td>\n",
       "      <td>9541</td>\n",
       "      <td>10433</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Cisco</th>\n",
       "      <td>20067</td>\n",
       "      <td>17209</td>\n",
       "      <td>16222</td>\n",
       "      <td>15789</td>\n",
       "      <td>15948</td>\n",
       "      <td>16592</td>\n",
       "      <td>17532</td>\n",
       "      <td>19099</td>\n",
       "      <td>21306</td>\n",
       "      <td>22030</td>\n",
       "      <td>23219</td>\n",
       "      <td>25309</td>\n",
       "      <td>27197</td>\n",
       "      <td>29053</td>\n",
       "      <td>30936</td>\n",
       "      <td>29854</td>\n",
       "      <td>30948</td>\n",
       "      <td>31930</td>\n",
       "      <td>34575</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Toyota</th>\n",
       "      <td>18823</td>\n",
       "      <td>18578</td>\n",
       "      <td>19448</td>\n",
       "      <td>20784</td>\n",
       "      <td>22673</td>\n",
       "      <td>24837</td>\n",
       "      <td>27941</td>\n",
       "      <td>32070</td>\n",
       "      <td>34050</td>\n",
       "      <td>31330</td>\n",
       "      <td>26192</td>\n",
       "      <td>27764</td>\n",
       "      <td>30280</td>\n",
       "      <td>35346</td>\n",
       "      <td>45392</td>\n",
       "      <td>49048</td>\n",
       "      <td>53580</td>\n",
       "      <td>50291</td>\n",
       "      <td>53404</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Citi</th>\n",
       "      <td>18809</td>\n",
       "      <td>19005</td>\n",
       "      <td>18066</td>\n",
       "      <td>18571</td>\n",
       "      <td>19971</td>\n",
       "      <td>19967</td>\n",
       "      <td>21458</td>\n",
       "      <td>23442</td>\n",
       "      <td>20174</td>\n",
       "      <td>10254</td>\n",
       "      <td>8887</td>\n",
       "      <td>8620</td>\n",
       "      <td>7570</td>\n",
       "      <td>7973</td>\n",
       "      <td>8737</td>\n",
       "      <td>9784</td>\n",
       "      <td>10276</td>\n",
       "      <td>10599</td>\n",
       "      <td>11577</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Gillette</th>\n",
       "      <td>17358</td>\n",
       "      <td>15298</td>\n",
       "      <td>14959</td>\n",
       "      <td>15978</td>\n",
       "      <td>16723</td>\n",
       "      <td>17534</td>\n",
       "      <td>19579</td>\n",
       "      <td>20415</td>\n",
       "      <td>22689</td>\n",
       "      <td>22841</td>\n",
       "      <td>23298</td>\n",
       "      <td>23997</td>\n",
       "      <td>24898</td>\n",
       "      <td>25105</td>\n",
       "      <td>22845</td>\n",
       "      <td>22218</td>\n",
       "      <td>19950</td>\n",
       "      <td>18200</td>\n",
       "      <td>16864</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Sony</th>\n",
       "      <td>16409</td>\n",
       "      <td>15005</td>\n",
       "      <td>13899</td>\n",
       "      <td>13153</td>\n",
       "      <td>12759</td>\n",
       "      <td>10754</td>\n",
       "      <td>11695</td>\n",
       "      <td>12907</td>\n",
       "      <td>13583</td>\n",
       "      <td>11953</td>\n",
       "      <td>11356</td>\n",
       "      <td>9880</td>\n",
       "      <td>9111</td>\n",
       "      <td>8408</td>\n",
       "      <td>8133</td>\n",
       "      <td>7702</td>\n",
       "      <td>8315</td>\n",
       "      <td>8474</td>\n",
       "      <td>9316</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>American Express</th>\n",
       "      <td>16122</td>\n",
       "      <td>16919</td>\n",
       "      <td>16287</td>\n",
       "      <td>16833</td>\n",
       "      <td>17683</td>\n",
       "      <td>18559</td>\n",
       "      <td>19641</td>\n",
       "      <td>20827</td>\n",
       "      <td>21940</td>\n",
       "      <td>14971</td>\n",
       "      <td>13944</td>\n",
       "      <td>14572</td>\n",
       "      <td>15702</td>\n",
       "      <td>17646</td>\n",
       "      <td>19510</td>\n",
       "      <td>18922</td>\n",
       "      <td>18358</td>\n",
       "      <td>17787</td>\n",
       "      <td>19139</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Honda</th>\n",
       "      <td>15244</td>\n",
       "      <td>14638</td>\n",
       "      <td>15064</td>\n",
       "      <td>15625</td>\n",
       "      <td>14874</td>\n",
       "      <td>15788</td>\n",
       "      <td>17049</td>\n",
       "      <td>17998</td>\n",
       "      <td>19079</td>\n",
       "      <td>17803</td>\n",
       "      <td>18506</td>\n",
       "      <td>19431</td>\n",
       "      <td>17280</td>\n",
       "      <td>18490</td>\n",
       "      <td>21673</td>\n",
       "      <td>22975</td>\n",
       "      <td>22106</td>\n",
       "      <td>22696</td>\n",
       "      <td>23682</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Amazon</th>\n",
       "      <td>4528</td>\n",
       "      <td>3130</td>\n",
       "      <td>3175</td>\n",
       "      <td>3403</td>\n",
       "      <td>4156</td>\n",
       "      <td>4248</td>\n",
       "      <td>4707</td>\n",
       "      <td>5411</td>\n",
       "      <td>6434</td>\n",
       "      <td>7858</td>\n",
       "      <td>9665</td>\n",
       "      <td>12758</td>\n",
       "      <td>18625</td>\n",
       "      <td>23620</td>\n",
       "      <td>29478</td>\n",
       "      <td>37948</td>\n",
       "      <td>50338</td>\n",
       "      <td>64796</td>\n",
       "      <td>100764</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Apple</th>\n",
       "      <td>6594</td>\n",
       "      <td>5464</td>\n",
       "      <td>5316</td>\n",
       "      <td>5554</td>\n",
       "      <td>6871</td>\n",
       "      <td>7985</td>\n",
       "      <td>9130</td>\n",
       "      <td>11037</td>\n",
       "      <td>13724</td>\n",
       "      <td>15433</td>\n",
       "      <td>21143</td>\n",
       "      <td>33492</td>\n",
       "      <td>76568</td>\n",
       "      <td>98316</td>\n",
       "      <td>118863</td>\n",
       "      <td>170276</td>\n",
       "      <td>178119</td>\n",
       "      <td>184154</td>\n",
       "      <td>214480</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>BMW</th>\n",
       "      <td>12969</td>\n",
       "      <td>13858</td>\n",
       "      <td>14425</td>\n",
       "      <td>15106</td>\n",
       "      <td>15886</td>\n",
       "      <td>17126</td>\n",
       "      <td>19617</td>\n",
       "      <td>21612</td>\n",
       "      <td>23298</td>\n",
       "      <td>21671</td>\n",
       "      <td>22322</td>\n",
       "      <td>24554</td>\n",
       "      <td>29052</td>\n",
       "      <td>31839</td>\n",
       "      <td>34214</td>\n",
       "      <td>37212</td>\n",
       "      <td>41535</td>\n",
       "      <td>41521</td>\n",
       "      <td>41006</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Google</th>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>8461</td>\n",
       "      <td>12376</td>\n",
       "      <td>17837</td>\n",
       "      <td>25590</td>\n",
       "      <td>31980</td>\n",
       "      <td>43557</td>\n",
       "      <td>55317</td>\n",
       "      <td>69726</td>\n",
       "      <td>93291</td>\n",
       "      <td>107439</td>\n",
       "      <td>120314</td>\n",
       "      <td>133252</td>\n",
       "      <td>141703</td>\n",
       "      <td>155506</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Samsung</th>\n",
       "      <td>5223</td>\n",
       "      <td>6374</td>\n",
       "      <td>8310</td>\n",
       "      <td>10846</td>\n",
       "      <td>12553</td>\n",
       "      <td>14956</td>\n",
       "      <td>16169</td>\n",
       "      <td>16853</td>\n",
       "      <td>17689</td>\n",
       "      <td>17518</td>\n",
       "      <td>19491</td>\n",
       "      <td>23430</td>\n",
       "      <td>32893</td>\n",
       "      <td>39610</td>\n",
       "      <td>45462</td>\n",
       "      <td>45297</td>\n",
       "      <td>51808</td>\n",
       "      <td>56249</td>\n",
       "      <td>59890</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Louis Vuitton</th>\n",
       "      <td>6887</td>\n",
       "      <td>7053</td>\n",
       "      <td>7054</td>\n",
       "      <td>6708</td>\n",
       "      <td>6602</td>\n",
       "      <td>16077</td>\n",
       "      <td>17606</td>\n",
       "      <td>20321</td>\n",
       "      <td>21602</td>\n",
       "      <td>21120</td>\n",
       "      <td>21860</td>\n",
       "      <td>23172</td>\n",
       "      <td>23577</td>\n",
       "      <td>24893</td>\n",
       "      <td>22552</td>\n",
       "      <td>22250</td>\n",
       "      <td>23998</td>\n",
       "      <td>22919</td>\n",
       "      <td>28152</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Facebook</th>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>5421</td>\n",
       "      <td>7732</td>\n",
       "      <td>14349</td>\n",
       "      <td>22029</td>\n",
       "      <td>32593</td>\n",
       "      <td>48188</td>\n",
       "      <td>45168</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                   2000   2001   2002   2003   2004   2005   2006   2007  \\\n",
       "brands                                                                     \n",
       "Coca-Cola         72537  68945  69637  70453  67394  67525  67000  65324   \n",
       "Microsoft         70196  65068  64091  65174  61372  59941  56926  58709   \n",
       "IBM               53183  52752  51188  51767  53791  53376  56201  57090   \n",
       "Intel             39048  34665  30861  31112  33499  35588  32319  30954   \n",
       "Nokia             38528  35035  29970  29440  24041  26452  30131  33696   \n",
       "GE                38127  42396  41311  42340  44111  46996  48907  51569   \n",
       "Ford              36368  30092  20403  17066  14475  13159  11056   8982   \n",
       "Disney            33553  32591  29256  28036  27113  26441  27848  29210   \n",
       "McDonald's        27859  25289  26375  24699  25001  26014  27501  29398   \n",
       "AT&T              25548  22828  16059      0      0      0      0      0   \n",
       "Marlboro          22110  22053  24151  22183  22128  21189  21350  21282   \n",
       "Mercedes-Benz     21104  21728  21010  21371  21331  20006  21795  23568   \n",
       "HP                20572  17983  16776  19860  20978  18866  20458  22197   \n",
       "Cisco             20067  17209  16222  15789  15948  16592  17532  19099   \n",
       "Toyota            18823  18578  19448  20784  22673  24837  27941  32070   \n",
       "Citi              18809  19005  18066  18571  19971  19967  21458  23442   \n",
       "Gillette          17358  15298  14959  15978  16723  17534  19579  20415   \n",
       "Sony              16409  15005  13899  13153  12759  10754  11695  12907   \n",
       "American Express  16122  16919  16287  16833  17683  18559  19641  20827   \n",
       "Honda             15244  14638  15064  15625  14874  15788  17049  17998   \n",
       "Amazon             4528   3130   3175   3403   4156   4248   4707   5411   \n",
       "Apple              6594   5464   5316   5554   6871   7985   9130  11037   \n",
       "BMW               12969  13858  14425  15106  15886  17126  19617  21612   \n",
       "Google                0      0      0      0      0   8461  12376  17837   \n",
       "Samsung            5223   6374   8310  10846  12553  14956  16169  16853   \n",
       "Louis Vuitton      6887   7053   7054   6708   6602  16077  17606  20321   \n",
       "Facebook              0      0      0      0      0      0      0      0   \n",
       "\n",
       "                   2008   2009   2010   2011   2012   2013    2014    2015  \\\n",
       "brands                                                                       \n",
       "Coca-Cola         66667  68734  70452  71861  77839  79213   81563   78423   \n",
       "Microsoft         59007  56647  60895  59087  57853  59546   61154   67670   \n",
       "IBM               59031  60211  64727  69905  75532  78808   72244   65095   \n",
       "Intel             31261  30636  32015  35217  39385  37257   34153   35415   \n",
       "Nokia             35942  34864  29495  25071  21009      0       0       0   \n",
       "GE                53086  47777  42808  42808  43682  46947   45480   42267   \n",
       "Ford               7896  28447   7195   7483   7958   9181   10876   11578   \n",
       "Disney            29251  28447  28731  29018  27438  28147   32223   36514   \n",
       "McDonald's        31049  32275  33578  35593  40062  41992   42254   39809   \n",
       "AT&T                  0      0      0      0      0      0       0       0   \n",
       "Marlboro          21300  19010  19961      0      0      0       0       0   \n",
       "Mercedes-Benz     25577  23867  25179  27445  30097  31904   34338   36711   \n",
       "HP                23509  24096  26867  28479  26087  25843   23758   23056   \n",
       "Cisco             21306  22030  23219  25309  27197  29053   30936   29854   \n",
       "Toyota            34050  31330  26192  27764  30280  35346   45392   49048   \n",
       "Citi              20174  10254   8887   8620   7570   7973    8737    9784   \n",
       "Gillette          22689  22841  23298  23997  24898  25105   22845   22218   \n",
       "Sony              13583  11953  11356   9880   9111   8408    8133    7702   \n",
       "American Express  21940  14971  13944  14572  15702  17646   19510   18922   \n",
       "Honda             19079  17803  18506  19431  17280  18490   21673   22975   \n",
       "Amazon             6434   7858   9665  12758  18625  23620   29478   37948   \n",
       "Apple             13724  15433  21143  33492  76568  98316  118863  170276   \n",
       "BMW               23298  21671  22322  24554  29052  31839   34214   37212   \n",
       "Google            25590  31980  43557  55317  69726  93291  107439  120314   \n",
       "Samsung           17689  17518  19491  23430  32893  39610   45462   45297   \n",
       "Louis Vuitton     21602  21120  21860  23172  23577  24893   22552   22250   \n",
       "Facebook              0      0      0      0   5421   7732   14349   22029   \n",
       "\n",
       "                    2016    2017    2018  \n",
       "brands                                    \n",
       "Coca-Cola          73102   69733   66341  \n",
       "Microsoft          72795   79999   92715  \n",
       "IBM                52500   46829   42972  \n",
       "Intel              36952   39459   43293  \n",
       "Nokia                  0       0       0  \n",
       "GE                 43130   44208   32737  \n",
       "Ford               12962   13643   13995  \n",
       "Disney             38790   40772   39874  \n",
       "McDonald's         39381   41533   43417  \n",
       "AT&T                   0       0       0  \n",
       "Marlboro               0       0       0  \n",
       "Mercedes-Benz      43490   47829   48601  \n",
       "HP                 10386    9541   10433  \n",
       "Cisco              30948   31930   34575  \n",
       "Toyota             53580   50291   53404  \n",
       "Citi               10276   10599   11577  \n",
       "Gillette           19950   18200   16864  \n",
       "Sony                8315    8474    9316  \n",
       "American Express   18358   17787   19139  \n",
       "Honda              22106   22696   23682  \n",
       "Amazon             50338   64796  100764  \n",
       "Apple             178119  184154  214480  \n",
       "BMW                41535   41521   41006  \n",
       "Google            133252  141703  155506  \n",
       "Samsung            51808   56249   59890  \n",
       "Louis Vuitton      23998   22919   28152  \n",
       "Facebook           32593   48188   45168  "
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "h = histogram.Histogram(df, 1600, 900, window_type=0)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "h.run(\"pgdancer\", \"Top 15 Best Global Brands Ranking\", \"---Datasource:https://www.interbrand.com\", \\\n",
    "          \"Top 15 Best Global Brands Ranking\", \"Brand Value:$m\")"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
